home *** CD-ROM | disk | FTP | other *** search
- #define PREAMBLE "\033["
-
- #define CLEAR "2J"
- #define CLS '\014'
- #define NORMAL '0'
- #define BOLD '1'
- #define HIGHLIGHT '2'
- #define ITALICS '3'
- #define UNDERLINE '4'
- #define REVERSE '7'
- #define UP 'A'
- #define DOWN 'B'
- #define RIGHT 'C'
- #define LEFT 'D'
- #define POSITION 'H'
- #define COLOR 'm'
-
- #define FGROUND '3'
- #define BGROUND '4'
-
- #define BLACK '0'
- #define RED '1'
- #define GREEN '2'
- #define YELLOW '3'
- #define BLUE '4'
- #define PURPLE '5'
- #define CYAN '6'
- #define WHITE '7'
-
- #define ScreenCommand(COMMAND) printf("%s%c",PREAMBLE,COMMAND)
-
- #define ChangeColors(FRONT,BACK) printf("%s%c%c;%c%c%c",PREAMBLE,FGROUND,FRONT,BGROUND,BACK,COLOR)
-
- #define ChangeMode(TYPE) printf("%s%c%c",PREAMBLE,TYPE,COLOR)
-
- #define MoveCursor(DISTANCE,DIRECTION) printf("%s%d%c",PREAMBLE,DISTANCE,DIRECTION)
-
- #define PosCursor(DOWN,ACROSS) printf("%s%d;%d%c",PREAMBLE,DOWN,ACROSS,POSITION)
-
- #define ClearScreen() printf("%s%s%c",PREAMBLE,CLEAR,CLS)
-
-
- #define TOP_LEFT '+'
- #define TOP_RGHT '+'
- #define BOT_LEFT '+'
- #define BOT_RGHT '+'
- #define VERT '|'
- #define HORZ '-'
-